package com.warm.base.design.s_decorator;

/**
 * @Date: 2019/11/22 10:32
 * @Author: LChuang
 * @Description:
 */
public class ConcreteDecoratorA extends Decorator {
    /**
     * 构造函数传递要装饰的对象
     *
     * @param component
     */
    public ConcreteDecoratorA(Component component) {
        super(component);
    }

    @Override
    public void operate() {
        super.operate();
        //调用自己的方法
        this.operateA();
    }

    private void operateA(){
        System.out.println("ConcreteDecoratorA decorator");
    }
}
